import request from '@/utils/request';

//查询列表
export async function queryRequest(): Promise<any> {
  return request('/api/order/cater/list',{method: 'GET',});
}

//编辑
export async function editRequest(params:any): Promise<any> {
  return request('/api/banner/update', {
    method: 'POST',
    data: params,
  });
}

//编辑
export async function deleteRequest(params:any): Promise<any> {
  return request('/api/banner/delete', {
    method: 'POST',
    data: params,
  });
}

//添加
export async function addRequest(params:any): Promise<any> {
  return request('/api/banner/add', {
    method: 'POST',
    data: params,
  })
}
